import { get, post } from "../utils/request";

export const reqDetailAPI = (id) => get("/api/v1/products/" + id);

export const addTocartAPI = (product, num = 1) =>
  post("/api/v1/shop_carts", {
    product,
    quantity: num,
  });
